package com.hhu.softpractise.controller;


import com.hhu.softpractise.common.BaseResponse;
import com.hhu.softpractise.common.ResultUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 全局健康检测器
 */
@RestController
@Slf4j
@RequestMapping("/health")
@Api( tags = "全局健康检测器")
public class MainController {


    @ApiOperation(value = "健康检测")
    @GetMapping("/health")
    public BaseResponse< String> health() {
        return ResultUtils.success("hello world");
    }
}
